CFLAG= -std=c++11 -I ../../muduo/include/
LFLAG= -L../../muduo/lib  -lmuduo_net -lmuduo_base -pthread
all: rpc_server reg_server rpc_client
rpc_server: rpc_server.cpp
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG) -ljsoncpp
reg_server: registry_server.cpp
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG) -ljsoncpp
rpc_client: rpc_client.cpp
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG)	-ljsoncpp
.PHONY:clean
clean:
	rm -f rpc_server 
	rm -f reg_server
	rm -f rpc_client
